package com.jnu.myaccount.data;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

public class Money implements Serializable {

    public void setMoney_id(int money_id) {
        this.money_id = money_id;
    }

    public int getMoney_id() {
        return money_id;
    }

    private int money_id;
    private String money_name;
    private double money_number;

    public double getIncome_sum() {
        return income_sum;
    }

    public double getSpend_sum() {
        return spend_sum;
    }

    public boolean isIs_date() {
        return is_date;
    }

    private double income_sum;

    public void setMoney_number(double money_number) {
        this.money_number = money_number;
    }

    public void setIncome_sum(double income_sum) {
        this.income_sum = income_sum;
    }

    public void setSpend_sum(double spend_sum) {
        this.spend_sum = spend_sum;
    }

    private double spend_sum;

    public void setIncome(boolean income) {
        this.income = income;
    }

    public boolean isIncome() {
        return income;
    }

    private boolean income;

    public Calendar getMoney_date() {
        return money_date;
    }

    public void setMoney_date(Calendar money_date) {
        this.money_date = money_date;
    }

    private Calendar money_date;

    public void setIs_date(boolean is_date) {
        this.is_date = is_date;
    }

    public boolean getIs_date() {
        return is_date;
    }

    //判断是否显示日期栏，只显示第一条日期栏
    private boolean is_date;

    public Money(int money_id,String money_name,double money_number,Calendar money_date,boolean is_date,boolean income,double income_sum,double spend_sum){
        this.money_id=money_id;
        this.money_name=money_name;
        this.money_number=money_number;
        this.money_date=money_date;
        this.is_date=is_date;
        this.income=income;
        this.income_sum=income_sum;
        this.spend_sum=spend_sum;
    }

    public void setMoney_number(int money_number) {
        this.money_number = money_number;
    }

    public double getMoney_number() {
        return money_number;
    }

    public void setMoney_name(String money_name) {
        this.money_name = money_name;
    }

    public String getMoney_name() {
        return money_name;
    }

}
